// mock数据模拟
import { DiffFilled } from '@ant-design/icons';
import Mock from 'mockjs';

//图表数据
let List = []
export default {
    getStatisticalData: () => {
        for(let i = 0; i<7;i++){
            List.push(
                Mock.mock({
                    苹果:Mock.Random.float(100,8000,0,0),
                    vivo:Mock.Random.float(100,8000,0,0),
                    oppo:Mock.Random.float(100,8000,0,0),
                    魅族:Mock.Random.float(100,8000,0,0),
                    三星:Mock.Random.float(100,8000,0,0),
                    小米:Mock.Random.float(100,8000,0,0)
                })
            )
        }
        return {
            code:2000,
            data:{
                videoData:[
                    {
                        name:'小米',
                        value:2999
                    },
                    {
                        name:'魅族',
                        value:2999
                    },
                    {
                        name:'vivo',
                        value:2999
                    },
                    {
                        name:'三星',
                        value:2999
                    },
                    {
                        name:'苹果',
                        value:2999
                    },
                    {
                        name:'小米',
                        value:2999
                    },
                ],
                userData:[
                    {
                        data:'周一',
                        new:5,
                        active:200
                    },
                    {
                        data:'周二',
                        new:5,
                        active:200
                    },
                    {
                        data:'周三',
                        new:5,
                        active:200
                    },
                    {
                        data:'周四',
                        new:5,
                        active:200
                    },
                    {
                        data:'周五',
                        new:5,
                        active:200
                    },
                ],
                // 折线图
                orderData:{
                    date:['20191001','2019102',,'2019103','2019104','2019105','2019106','2019107'],
                    data:List
                },
                tableData:[
                    {
                        name:'oppo',
                        todayBuy:500,
                        monthBuy:3500,
                        totalBuy:22000
                    },
                    {
                        name:'vivo',
                        todayBuy:500,
                        monthBuy:3500,
                        totalBuy:22000
                    },
                    {
                        name:'小米',
                        todayBuy:500,
                        monthBuy:3500,
                        totalBuy:22000
                    },
                    {
                        name:'三星',
                        todayBuy:500,
                        monthBuy:3500,
                        totalBuy:22000
                    },
                    {
                        name:'苹果',
                        todayBuy:500,
                        monthBuy:3500,
                        totalBuy:22000
                    },
                    {
                        name:'魅族',
                        todayBuy:500,
                        monthBuy:3500,
                        totalBuy:22000
                    }
                ]
            }
        }
    }
}